#include <iostream>
using namespace std;

int main(int argv, char *argv[], char *env[])
{

  cout << "这是命令行参数" << endl;
  cout << argv[0] << "begin running" << endl;

  for (int i = 0; argv[i]; i++)
    cout << i << " : " << argv[i] << endl;

  cout << argv[0] << "begin running" << endl;
  
  cout << "这是环境变量参数" << endl;
  for (int i = 0; env[i]; i++)
  {
    cout << i << " : " << env[i] << endl;
  }
  return 0;
}
